﻿@model ScmDailycheckViewModel
@{
    ViewBag.Title = "日常检查审批-审批弹出框";
    Layout = null;
}
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
@{Html.EnableClientValidation();}
@using (Html.BeginForm("CheckChangedApproval", "ScmCheckChanged", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogAjaxDone);", @class = "pageForm required-validate" }))
{
@*<form method="post" action="@Url.Action("CheckChangedApproval", "ScmCheckChanged")" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">*@
<div class="pageFormContent sortDrag" layouth="58">
    @Html.TextBoxFor(m => m.TheAuditInfo.A_ID, new { @type = "hidden" })
    @Html.TextBoxFor(m => m.TheAuditInfo.A_State, new { @type = "hidden" })
    @Html.TextBoxFor(m => m.TheAuditInfo.A_PrimayID, new { @type = "hidden" })
    @Html.TextBoxFor(m => m.TheAuditInfo.A_DepID, new { @type = "hidden" })
    @Html.TextBoxFor(m => m.TheAuditInfo.A_DepName, new { @type = "hidden" })
    <table class="tab01 tabNo" width="100%;">
        <tr>
            <td class="td1" style="width:25%;">
                审批人：
            </td>
            <td>
                @Html.TextBoxFor(m => m.TheAuditInfo.A_ManID, new { @type = "hidden" })
                @Html.TextBoxFor(m => m.TheAuditInfo.A_ManName, new { @readonly = "true", @class="input02" })
            </td>
        </tr>
        <tr>
            <td class="td1">
                审批时间：
            </td>
            <td>
                @Html.TextBoxFor(m => m.TheAuditInfo.A_Time, new { @readonly = "true",@class="input02", Value = Model.TheAuditInfo.A_Time.ToString("yyyy-MM-dd HH:mm:ss") })
            </td>
        </tr>
        <tr>
            <td class="td1">
                审批：
            </td>
            <td>
                @Html.DropDownListFor(m => m.TheAuditInfo.A_IsApproved, ViewBag.auList as IEnumerable<SelectListItem>)
            </td>
        </tr>
        <tr>
            <td class="td1">
                审批意见：
            </td>
            <td>
                 @Html.TextAreaFor(m => m.TheAuditInfo.A_Opinion, new Dictionary<string, object> { { "class", "data-val-required input05" }})
                    @Html.ValidationMessageFor(m => m.TheAuditInfo.A_Opinion)
               @* @Html.TextBoxFor(m => m.TheAuditInfo.A_Opinion, new { @class = "required input05", @size = "50" })*@
            </td>
        </tr>
        <tr>
            <td class="td1">
                反馈信息：
            </td>
            <td>
                @Html.TextAreaFor(m => m.TheAuditInfo.A_Remark, new { @cols = "45", @rows = "5",@class="input05" })
            </td>
        </tr>
        <tr>
            <td class="td1">
                附件：
            </td>
            <td>
                <input id="AssistID" name="AssistID" value="@ViewBag.AssisId" type="hidden" />
                <a href='/Common/UploaderFile/Uploader/?id=ZDFileID' width="710" height="460" rel="rel_WorkFlow_WorksMeasure_Attach"
                    mask="true" target="dialog" title="附件管理">
                    <img src="/Content/themes/default/images/fj.gif" alt="查看附件" id='ZDFileID'
                             uploaderoption="{MoudleID:@ViewBag.MoudleID,'ToSelectIDs':[@ViewBag.FileIds],'ToDeleteIDs':[@ViewBag.DeleteIds],BizDeleteURL:'/SafetyConstruction/Base/Delete/',BizSaveUrl:'/SafetyConstruction/Base/BatchAdd/',BizType:'DailyCheck_Rules',BizID:'@ViewBag.AssisId','dirWhere':'@ViewBag.DirWhere'}" />
                </a>
            </td>
        </tr>
    </table>
</div>
<div class="formBar">
    <ul>
        <li>
            <button type="submit" class="btn btn-sm">
                审批</button>
        </li>
        <li>
            <button type="button" class="close btn btn-default btn-sm">
                取消</button>
        </li>
    </ul>
</div>
@*</form>*@
}
